﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucProductOrther.ascx.cs"
    Inherits="TTMarketing.UserControl.SanPham.ucProductOrther" %>
<asp:ObjectDataSource ID="odsNews" runat="server" SelectMethod="Product_getOrther"
    TypeName="TTBusiness.ClassProject.clsBSBusiness">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
        <asp:Parameter DefaultValue="20" Name="top" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="odsNews" BorderWidth="0px"
    ItemPlaceholderID="ph" AllowPaging="True" PageSize="15" Width="100%">
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="ph" />
    </LayoutTemplate>
    <ItemTemplate>
        <table width="100px" id="Product-l">
            <tr>
                <td align="center">
                    <a href='<%# "?id="+Eval("ID") %>'></a>
                    <img height="100px" width="100px" alt="" src='<%# "/Image/Upload/" +Eval("Image") %>' />
                </td>
            </tr>
            <tr>
                <td align="center" style="height:51px;">
                    <a href='<%# "?id="+Eval("ID") %>'>
                        <%# Eval("Name") %>
                    </a>
                    <br />
                    <asp:Label ID="Label4" runat="server" Text='<%# "( "+ Eval("SeriNumber")  +" )"%>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top" style="height:60px" >
                    <%# Eval("Summary").ToString().Length > 60 ? Eval("Summary").ToString().Substring(0, 59)+"..." : Eval("Summary").ToString()%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    
    <EmptyDataTemplate>
        <div class="RadListView RadListView_Default">
            <div class="rlvEmpty">
                Dữ liệu đang cập nhật</div>
        </div>
    </EmptyDataTemplate>
</telerik:RadListView>
